<template>
	<view class="audit-box">
		<HeaderTitle :title="$t('Audit')" :bottom="true" :lang="false" :mobile="true" :combakflag="false">
		</HeaderTitle>
		<view class="item-box">
			<view class="content" v-if="type==1">
				<u-icon name="clock" color="#999" size="58"></u-icon>
				<text style="color:#999">审核中</text>
			</view>
			<view class="content" v-if="type==2">
				<u-icon name="checkmark-circle" color="#45BC1B" size="58"></u-icon>
				<text style="color:#45BC1B">审核通过</text>
			</view>
			<view class="content" v-if="type==3">
				<u-icon name="close-circle" color="#fc5531" size="58"></u-icon>
				<text style="color:#fc5531">审核失败</text>
			</view>
			<view class="content" v-if="type==4">
				<image src="../../static/images/Frame.png" mode="widthFix"></image>
					
					<text style="color:#45BC1B;font-size: 28rpx;">(为了继续上班和客服联系)</text>
					<text class="button" @clic="changeMobile(mydata.mobile)">继续上班</text>
			</view>
		</view>
		<Contact style="margin-top:0rpx;" :shopdata="mydata"></Contact>
	</view>
</template>

<script>
	import Contact from "@/components/Contact.vue"
	export default {
		components: {
			Contact
		},
		data() {
			return {
				type: 1,
				mydata: {
					mobile: '17690927591',
					wechat: '17690927591'
				}
			};
		},
		onLoad(e) {
			if(e.type){
				this.type=e.type
			}
		},
		methods:{
			changeMobile(mobile) {
				uni.makePhoneCall({
					phoneNumber: mobile
				})
			
			},
		}
	}
</script>

<style lang="scss" scoped>
	.audit-box {
		width: 100%;
		height: 100vh;
		display: flex;
		flex-direction: column;
		justify-content: space-around;

		.item-box {
			width: 100%;
			box-sizing: border-box;
			padding: 0rpx 20rpx;
			display: flex;
			justify-content: center;
			// margin-top: 200rpx;
			.content {
				display: flex;
				flex-direction: column;
				justify-content: center;
				align-items: center;
				.button{
					padding: 10rpx 50rpx;
					color:#fff;
					background-color: $uni-color-topic;
					margin-top: 30rpx;
					border-radius: $uni-border-radius-lg;
					font-size: $uni-font-size-lg;
				}
				text {
					padding: 20rpx 20rpx;
					
				}
				image{
					width:300rpx;
				}
			}
		}
	}
</style>